<nav class="top-bar" data-topbar role="navigation">
    <ul class="title-area">
      <li class="name">
        <h1><a href="<?php echo $renderer->url(CONF_DEFAULT_CONTROLLER."/".CONF_DEFAULT_ACTION); ?>"><strong>piDashboard</strong></a></h1>
      </li>
       <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
      <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
    </ul>

    <section class="top-bar-section">
      <!-- Left Nav Section -->
      <ul class="right">
          <li class="has-dropdown<?php if($navigation[0] === "camera"): ?> active<?php endif; ?>">
          <a href="<?php echo $renderer->url("camera/home"); ?>">Vidéo-surveillance</a>
          <ul class="dropdown">
            <li<?php if($navigation[0] === "camera" && $navigation[1] === "home"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("camera/home"); ?>">En direct</a></li>
            <li<?php if($navigation[0] === "camera" && $navigation[1] === "archive"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("camera/archive"); ?>">Archives</a></li>
            <li<?php if($navigation[0] === "camera" && $navigation[1] === "intrusion"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("camera/intrusion"); ?>">Détection d'intrusion</a></li>
            <li<?php if($navigation[0] === "camera" && $navigation[1] === "configuration"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("camera/configuration"); ?>">Configuration</a></li>
          </ul>
        </li>
        <li class="has-dropdown<?php if($navigation[0] === "lifx"): ?> active<?php endif; ?>">
          <a href="<?php echo $renderer->url("lifx/home"); ?>">LI<strong>FX</strong></a>
          <ul class="dropdown">
            <li<?php if($navigation[0] === "lifx" && $navigation[1] === "home"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("lifx/home"); ?>">Vue d'ensemble</a></li>
            <li<?php if($navigation[0] === "lifx" && $navigation[1] === "programmation"): ?> class="active"<?php endif; ?>><a href="<?php echo $renderer->url("lifx/programmation"); ?>">Programmateur</a></li>
          </ul>
        </li>
      </ul>
    </section>
</nav>
